package cn.zjyj.module.zjyj.controller.admin.tenantunit.vo;

import lombok.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.zjyj.framework.common.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.zjyj.framework.common.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 租户单元分页 Request VO")
@Data
public class TenantUnitPageReqVO extends PageParam {

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

    @Schema(description = "单元名称", example = "芋艿")
    private String name;

    @Schema(description = "父单元id", example = "26403")
    private Long parentId;

    @Schema(description = "显示顺序")
    private Integer sort;

    @Schema(description = "负责人", example = "9691")
    private Long leaderUserId;

    @Schema(description = "联系电话")
    private String phone;

    @Schema(description = "单元状态（0正常 1停用）", example = "2")
    private Integer status;

    @Schema(description = "类型,值取字典表", example = "1")
    private String type;

    @Schema(description = "是否为危险源")
    private Integer isDangerSource;

}